Maybe putting all the options to enforce in an array and then looping over it would be more compact/maintainable