Extracted data injection routines to separate class.