Rubocop refefactor, reducing Metrics/AbcSize size