Clean up sync resources code