Clean repository code