Removed duplicate code from WebApi project.