Refactor: extract functions
Refactor: extract functions

inteligencia-coletiva-lsd/pybossa,OpenNewsLabs/pybossa,jean/pybossa,stefanhahmann/pybossa,PyBossa/pybossa,geotagx/pybossa,harihpr/tweetclickers,Scifabric/pybossa,jean/pybossa,stefanhahmann/pybossa,PyBossa/pybossa,geotagx/pybossa,harihpr/tweetclickers,Scifabric/pybossa,inteligencia-coletiva-lsd/pybossa,OpenNewsLabs/pybossa