Less code generating default constructor in classes