Extract method to calculate repository factories' order

As both artifacts and metadata repository factories' order calculated in
the same way, eliminate duplication by extracting this logic into a
separate method.

Change-Id: I5900fcf5126968715ea2f0720229942bf878381b
Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
1 file changed