Move command-related things to command.rs.