DRY up EntropySource implementation