Moved to the updates app, as all updates will want to use this function.