Clean up facts ruby code