Moved transform_visitors.hpp implementations to cc file.