Move tesla_instance_active to the header so it can be inlined.