Split Font Awesome icons array into a reusable function.