refactor mania