Initial factory of layers
removing unnecesary code