Bottom extraction: float out bottoming expressions to top level