added remove functionality to commands, mediators, and injector