Separated command execution to a separate class.