Remove Rails specific code, will be extracted to access-granted-rails gem.