Made CopygrinderApi more DRY.  More work on types.