Moved types registry to the types file