Refactor routing restrictions into the scope