Claim and Stake $Ruler Functionality?

As I generate more yield, I would love to be able to take my $Ruler and automatically stake it.
Could that be created as functionality?

Ideally it could cut on gas fees, but I imagine it would call on both contracts of claiming, then staking.

I’m still learning solidity, but I’d love to take a stab at this for training.