gpu: ion: Refactor common mapping functions out of system heap