Factor out node titles to TitleGroup class