simplify get_extra_restriction code
simplify get_extra_restriction code

swisscom/cleanerversion,anfema/cleanerversion,swisscom/cleanerversion,swisscom/cleanerversion,pretix/cleanerversion,anfema/cleanerversion,pretix/cleanerversion,anfema/cleanerversion,pretix/cleanerversion