Review the PAC architect. And create custom module for each separate logic.