How in-house agencies are moving up the value chain