[reafac] added layer declaration pick during compilation