Bug 867111 - Extract the tags screen functions into an object for reusing.