Remove logger from serialising in all command classes