Extract class and method writers.