Understand the existing architecture, issues and the like. Document the workflow, components so its easier to re-factor this.