Refactor monolithic structure into blueprint module