Refactoring bulk tasks creation