Updates constants class to use methods instead of externs