refactor get route annotations