General repository cleanup.