Some static helper methods to get decode bit fields