Merge "rdbms: reduce code duplication and make LBFactoryMulti sanity checks work"