Refactor a little, add rake task to check repositories identifier uniqueness