Refactoring code that posts to Riskified