DRY: Create `convert_blank_values_to_nil` helper.
Rubocop: disable ClassLength and MethodLength cops

We have lots of inline Groovy heredoc code  which throws these cops off.
Rubocop: Disable PredicateName and CaseEquality cops in RSpec matchers

These checks go against the custom RSpec matcher idioms.
Rubocop: fix style/lint errors