Transactions methods moved from controller to model

Redundant `self` detected.