Refactor Command behavior by moving the command execution in itself.