Custom mod support refactoring.