refactor($compile): use createMap shortcut