Add optimizeRepository helper
A first iteration of the optimizeRepository helper that does a Repack if a bitmap is missing.
fixes: #2543 (closed)
This also changes the repository stats calls by separating each function rather than calling all of them at once.
Edited by GitLab Release Tools Bot