Integration of Categorical Frameworks: Rule-Based Refinement and Hierarchical Composition for Components