What about making this an util method -- you already used it here 3 times?