Splitting transaction code up into multiple methods