Ruby style tidy up.