Adopted RightsHelper and services to repository pattern.