Remove cyclomatic complexity from container LWRP load_current_resource