Addressing sources of variation in clinical trials