Rewritten types repository to category repo.
WIP: refactoring because of change in stypes