Control-based factorization through causal interactions and hierarchical reinforcement learning