Refactor

Extract Base64String and HexadecimalString types.