Move the data setter to it's own method.