centralized ID type specific method assignement in generic constructor