Plans for a factory farm near a village in North Yorkshire are submitted to councillors.