Implements a custom PublishedContentModelFactory

As per #1.