Factorize sub elements creation