Refactor for an annotated bean method