Create static factory methods for CodeLocation