Theoretical and Practical Rationality: Towards a Unified Account