Add inheritance support for command handlers