extract method persistApplySpec

Signed-off-by: Jeffrey Peckham <peckham@pivotallabs.com>
just persist apply spec when configuration_hash is not provided

[#62412928]

Signed-off-by: Nick Wade <nwade@pivotallabs.com>