Refactored AR findOne() and findAll().