Frector to reduce if lines and export repetition