de-PHP-ify maps