Revert "Get version and trademark directly"

This reverts commit 510769318040dd4d9c44f9ba15866d0502049260.