Refactor Web API attribute route building for further extensibility.