Remove staticpublisher dependency by copying FilesystemPublisher.