Remove unused `applyOpacity` function