Moved getPackageFilesWithCallables to frontend.java and reused it.
Writing/reading constants map fully to avoid hash collisions.
Extracted proto map implementation to inner class and simplified.
Extracted constants map implementation to inner class.
Extracted package part map implementation to inner class.