WIP Go trough all the repository signatures and returns and make sure that null safety has been properly handled. Same for endpoints