If a person who has workers' compensation insurance coverage subcontracts all or part of the work to be performed by the person to a subcontractor with the intent to avoid liability as an employer under this subtitle, an employee of the subcontractor who sustains a compensable injury in the course and scope of the employment shall be treated as an employee of the person for purposes of workers' compensation and shall have a separate right of action against the subcontractor. The right of action against the subcontractor does not affect the employee's right to compensation under this subtitle.
Tex. Lab. Code § 406.124