refactor(domUtil): remove centerElementByMargin. Use flex containers.