Implement almost-complete boilerplate transformation.