Function: beforeAction()
Function to be called by the vault before depositing or withdrawing to remove liquidity and harvest fees for accounting purposes.
Branches and code coverage
Intended branches
Claim the earnings.
Remove the liquidity.
Assumes the liquidity will be added back after the action.
Negative behavior
Should not be callable by anyone other than the vault.