new layor factory creation method to ensure the proper layer factory is used