Extracted method for the polling station and communeName generator logic and puted it in a superclass.