Refactor out minify try/catch and options parsing