Refactor many things. Put all samples in one build. Make as many samples as possible work on as many targets as possible.