Update replicator script and remove defunct template files