Replace $replication_info by a global variable.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>