Moved ceiling and floor check on quality into private StandardItem#update_quality.