This whole inflation logic seems duplicated here and in the EntryController. Might be good to check what really is duplicated and extract to a single method used by both.