Refactored CreatePollModule for better readability