I would remove this and refactor get_types below to return the types hash. see below. we could then get rid of the whole initialize method, when not there, super is automatically called.