Extract code templates