Environment Representation by Behavior Decomposition