Refactored state package factory methods into an UnlockStateFactory at the
package level.