Remove "palette.rb"
Commands: remove duplicated code

Also, hide requires inside a method