Refactoring annotation factory obtainment