Refactor MVC attribute route building for further extensibility.