Refactor wire