Factor out ownertrust handling into own func
Should change nothing but make the code a bit more readable.