Simplified context generation.
Split commands into predicates and actions.