FC014: Consider extracting long ruby_block to library.