move addon_filter into a top-level function
move addon_filter into a top-level function

mozilla/addons-server,muffinresearch/olympia,ddurst/zamboni,mrrrgn/olympia,Joergen/olympia,mstriemer/zamboni,tsl143/zamboni,mstriemer/zamboni,atiqueahmedziad/addons-server,mrrrgn/olympia,mrrrgn/olympia,beni55/olympia,jasonthomas/zamboni,beni55/olympia,muffinresearch/addons-server,Witia1/olympia,robhudson/zamboni,ayushagrawal288/zamboni,mstriemer/addons-server,johancz/olympia,washort/zamboni,andymckay/zamboni,robhudson/zamboni,mozilla/olympia,mstriemer/addons-server,magopian/olympia,andymckay/addons-server,clouserw/zamboni,harry-7/addons-server,mstriemer/olympia,jamesthechamp/zamboni,harry-7/addons-server,robhudson/zamboni,elysium001/zamboni,diox/zamboni,Witia1/olympia,diox/zamboni,Hitechverma/zamboni,yfdyh000/olympia,mdaif/olympia,mozilla/zamboni,muffinresearch/olympia,wagnerand/olympia,wagnerand/olympia,wagnerand/addons-server,diox/olympia,mudithkr/zamboni,elysium001/zamboni,harikishen/addons-server,bqbn/addons-server,beni55/olympia,kmaglione/olympia,robhudson/zamboni,magopian/olympia,johancz/olympia,koehlermichael/olympia,harikishen/addons-server,mstriemer/olympia,mozilla/addons-server,Jobava/zamboni,muffinresearch/olympia,andymckay/zamboni,wagnerand/olympia,andymckay/addons-server,eviljeff/olympia,kumar303/zamboni,anaran/olympia,kmaglione/olympia,shahbaz17/zamboni,mudithkr/zamboni,crdoconnor/olympia,Witia1/olympia,luckylavish/zamboni,johancz/olympia,atiqueahmedziad/addons-server,harikishen/addons-server,Jobava/zamboni,yfdyh000/olympia,lavish205/olympia,mrrrgn/olympia,aviarypl/mozilla-l10n-addons-server,diox/olympia,wagnerand/zamboni,crdoconnor/olympia,crdoconnor/olympia,Joergen/olympia,muffinresearch/addons-server,andymckay/olympia,bqbn/addons-server,andymckay/olympia,Joergen/olympia,koehlermichael/olympia,mdaif/olympia,Prashant-Surya/addons-server,spasovski/zamboni,bqbn/addons-server,koehlermichael/olympia,ingenioustechie/zamboni,kumar303/addons-server,beni55/olympia,kumar303/olympia,muffinresearch/olympia,crdoconnor/olympia,mstriemer/zamboni,kumar303/olympia,eviljeff/olympia,mdaif/olympia,eviljeff/olympia,Nolski/olympia,Joergen/zamboni,tsl143/zamboni,eviljeff/zamboni,Hitechverma/zamboni,elysium001/zamboni,muffinresearch/olympia,diox/zamboni,Witia1/olympia,mozilla/zamboni,tsl143/zamboni,jasonthomas/zamboni,kumar303/addons-server,kmaglione/olympia,jpetto/olympia,mdaif/olympia,spasovski/zamboni,Revanth47/addons-server,SuriyaaKudoIsc/olympia,clouserw/zamboni,ngokevin/zamboni,diox/olympia,Nolski/olympia,Revanth47/addons-server,koehlermichael/olympia,mdaif/olympia,Hitechverma/zamboni,mstriemer/olympia,harikishen/addons-server,mrrrgn/olympia,yfdyh000/olympia,johancz/olympia,jasonthomas/zamboni,yfdyh000/olympia,ingenioustechie/zamboni,clouserw/zamboni,jbalogh/zamboni,psiinon/addons-server,lavish205/olympia,Prashant-Surya/addons-server,ngokevin/zamboni,wagnerand/zamboni,tsl143/zamboni,bqbn/addons-server,Jobava/zamboni,jamesthechamp/zamboni,Joergen/zamboni,aviarypl/mozilla-l10n-addons-server,mstriemer/olympia,wagnerand/addons-server,muffinresearch/addons-server,ddurst/zamboni,shahbaz17/zamboni,mudithkr/zamboni,kmaglione/olympia,luckylavish/zamboni,kumar303/zamboni,jpetto/olympia,andymckay/olympia,Joergen/zamboni,mozilla/zamboni,wagnerand/zamboni,spasovski/zamboni,mozilla/zamboni,SuriyaaKudoIsc/olympia,mstriemer/zamboni,eviljeff/zamboni,mudithkr/zamboni,wagnerand/addons-server,jpetto/olympia,Nolski/olympia,jamesthechamp/zamboni,magopian/olympia,magopian/olympia,jbalogh/zamboni,anaran/olympia,Nolski/olympia,eviljeff/olympia,ddurst/zamboni,andymckay/olympia,wagnerand/addons-server,ddurst/zamboni,tsl143/addons-server,ayushagrawal288/zamboni,tsl143/addons-server,lavish205/olympia,aviarypl/mozilla-l10n-addons-server,atiqueahmedziad/addons-server,mozilla/addons-server,johancz/olympia,harry-7/addons-server,mozilla/olympia,jbalogh/zamboni,Joergen/olympia,Revanth47/addons-server,psiinon/addons-server,mstriemer/addons-server,spasovski/zamboni,kmaglione/olympia,yfdyh000/olympia,lavish205/olympia,jasonthomas/zamboni,andymckay/addons-server,ingenioustechie/zamboni,elysium001/zamboni,Joergen/zamboni,anaran/olympia,shahbaz17/zamboni,tsl143/addons-server,mozilla/olympia,ayushagrawal288/zamboni,eviljeff/zamboni,washort/zamboni,luckylavish/zamboni,Prashant-Surya/addons-server,clouserw/zamboni,Joergen/zamboni,wagnerand/zamboni,jpetto/olympia,washort/zamboni,Jobava/zamboni,kumar303/addons-server,harry-7/addons-server,Joergen/olympia,jbalogh/zamboni,kumar303/olympia,aviarypl/mozilla-l10n-addons-server,wagnerand/olympia,andymckay/zamboni,diox/olympia,andymckay/addons-server,anaran/olympia,Joergen/zamboni,ingenioustechie/zamboni,kumar303/zamboni,psiinon/addons-server,ayushagrawal288/zamboni,luckylavish/zamboni,beni55/olympia,kumar303/zamboni,Nolski/olympia,muffinresearch/addons-server,crdoconnor/olympia,koehlermichael/olympia,Witia1/olympia,SuriyaaKudoIsc/olympia,mstriemer/addons-server,psiinon/addons-server,atiqueahmedziad/addons-server,muffinresearch/addons-server,tsl143/addons-server,washort/zamboni,diox/zamboni,kumar303/olympia,SuriyaaKudoIsc/olympia,jamesthechamp/zamboni,kumar303/addons-server,shahbaz17/zamboni,ngokevin/zamboni,Prashant-Surya/addons-server,magopian/olympia,eviljeff/zamboni,mozilla/addons-server,Revanth47/addons-server,Hitechverma/zamboni,mozilla/olympia