Brian Miller was a litigator at New York-based Chadbourne & Parke in 2001 when client AES Corp. invited him to interview for an in-house job in the electricity generation and distribution giant’s legal department.

“I thought, ‘I’m sure in-house is boring, and why would I want to do it?’ ” he said recently.