Split up automorphy factor function