Trends in outsourcing from a legal perspective