Make LinkData and TextData constructors internal