HDFS-4015 counts and reports orphaned blocks numberOfBytesInFutureBlocks in safe mode. It was implemented in BlockManager. Per discussion in HDFS-9129 which introduces the BlockManagerSafeMode, we can move code that maintaining orphaned blocks to this class.
Leaving safe mode checks blocks with future GS in FSNamesystem. This code can also be moved to BlockManagerSafeMode.