Use updated API for creating replications - was not compiling.