Refactor: use #invert to avoid repeating my maps