Simplify refMap generator