Refactoring fromJson out into multiple methods