Refactoring of answer hashmaps.