Using NodePub\Common\Trait\SourceDirectoryAware interface and trait, replacing similar code