Measuring the distribution of stars and dark matter in galaxy-scale strong gravitational lenses: lessons from an automated approach