Optimize attribute routing link generation