refactor the linkedin controller