I need to refactor this codebase.