Or, they could link it together, with ROTB being set years before TLK and the defeat of Unicron requires him being imprisoned within the Earth for some reason. However that would mean the maw of Unicron would be a modern occurrence so it would've been discovered sooner that the events of TLK. Although these movies aren't very good with being aware of what happens in the other movies.
I hope its a separate thing thing though.