Check hierarchy of modules for association