beetl refactory