Actually it is not specific to any type of block (like forms or lists) so can be placed into ui module.