Cleaner Ruby code.