Replicate static indexes to the correct target database

This fix ensures static indexes replicate to the correct target database
based on the replication destinations document.

CLA has been sent.