Move power consideration part out to single file