Refactoring getting Repository member.