Since `capability.CAPS | capability.BOUNDS` is used three times here, would it make sense to add that to a constant here?  (I know, I know, very minor nit :) )