Refactor biff scripts.