Improving commands refactoring the common parts to Command
Removing unused Logger and import statements
Adding 400 error code