fx_reorient refactoring