[Misc] Remove code duplications + add explanations as to why we remove the "repository-all" profile.
[Misc] Remove code duplications + add explanations as to why we remove the "repository-all" profile.

xwiki/xwiki-commons,xwiki/xwiki-commons