Use extract method to uncomplicate compile_hash
Use extract method to uncomplicate compile_hash

This addresses two concerns identified through code climate:
compile_hash is very complex and has duplication.

DRYing up setting population to address duplication.

Using extract method on other bits of logic to clean up this method.

bholzer/rabl,Jyaasa/rabl,bholzer/rabl,infertux/rabl,bholzer/rabl,nesquena/rabl,sideci-sample/sideci-sample-rabl,Jyaasa/rabl,sideci-sample/sideci-sample-rabl,zoyi/rabl,infertux/rabl,nesquena/rabl,zoyi/rabl,zoyi/rabl,infertux/rabl,Jyaasa/rabl,nesquena/rabl