Refactor mysql-multimaster configuration