refactor: simplify maps equality testing