Integrability by separation of variables