Refactor SharedLibraryTask