Created separate model for storing maps useful in subgraph
Modified subgraph so it now uses GraphSubgraphMapper object instead of cluttering the code