Extract preparation before defining