Rework params parsing in ReposController