This block looks identical to the 'role' case. Use a method.