This function (`findTopMostLayer`) is not used anymore, please remove.