Refactor: Extract literal by method