fieldsByType instance should not be a member variable