Brittle but functional refactor.