The name of this function implies a more general purpose.  Perhaps it should be renamed something to indicate its specialized use.