Function resolveMaybeDynamic