Extract the command logic into Hacklet::Command