Implement UnitConstraint on routes.