Refactor LinkedIn API code to common location for reuse.