most countries have some kind of "small business" type entity that the employee can create and you are left to deal with Data protection only. It's a B2B relationship.
For example in France, which is known for its labor code that protects employees much better than other countries, here are some conditions that can lead to this: - Proven relationship of subordination - The contractor is only working for your company - Poorly written contract (specifically, obligation of means vs obligation of results)