Although the duties imposed by this part are generally stated in terms of the duty of a railroad, any person, including a contractor for a railroad, who performs any function covered by this part must perform that function in accordance with this part.