If the functionality is intended to be called from bin/openquake only we should remove the main.