Refactor `Style/RegexpLiteral` cop
Refactor `Style/RegexpLiteral` cop

This change simplifies the cop by extracting:

 - `#allowed_percent_r_literal?`
 - `#allowed_slash_literal?`

jonas054/rubocop,jonas054/rubocop