Comment on refactor: introduce types to remove 'any' usage