Shifting tracking of db insertions in PathFactory to decorator.