Move committees api implementation to its own file.