Removes useless public paths