Extracted COMPUTE-EFFECTIVE-METHOD to a separate file.