Simplified command handler registry and moved safe methods to implicit
class