def METHOD_NAME(self, rule, version, max_registers=15):
    created = self.create(
        rule=rule,
        match_arg=rule.get_match_arg(),
        action=rule.action,
        version_name=version.verbose_name,
        version_type=version.type,
    )
    for match in self.filter(rule__project=rule.project)[max_registers:]:
        match.delete()
    return created