Abstracted mods helper implementaiton to a module so its DRY for collection and core file