Use private module scope rather than nested class for Map