Marking the queries and command handlers as co/contravariant