Whenever a railroad line is abandoned, the department may remove grade crossing protection devices therefrom to protect the state's investment therein.