bash: Remove extract function