Minor refactor in ability.rb.