Refactor this mess