[Subversion] Refactor reusable code.