Start refactoring "flx" tool.