Export only `optimize` function.
Remove unused code.
Export only `parseBF` function.
Follow HLint suggestions.