Split material into .h and .cpp files.