Move code out of .h files.