Four years ago, Andrés MacGillivray took an unusual decision. He had a high-flying job as a project manager at a pharmaceuticals company in Canada and looked set for a cushy corporate career.