Whenever it becomes necessary for an agency to lay off employees, the appointing authority shall prepare a comprehensive written plan for layoff following the procedure specified in this chapter and submitted to the director for review and approval prior to implementation.