Implement single-table inheritance for flags